Add reusable IFC policy engine - #7001
Conversation
Signed-off-by: Jordan Mecom <jm@squareup.com>
🔐 Codex Security Review
|
|
Reviewed exact head P0 — first foreign-realm observation does not poison confinement
The concrete bypass is Please bind confinement to the entered domain's realm, or independently track the first observed realm and permanently poison state on any mismatch. Add a regression test where a realm-B trusted-configuration label is the first/only observation in a realm-A process and an otherwise valid exact grant still cannot publish. P0 — verified grants admit impossible destination shapes
A signed realm-B audience paired with a realm-A routing context—or a public audience paired with a private conversation context—can therefore authorize a release. Please extract one shared destination-shape validator, use it for both domain construction and grant verification, and return a distinct malformed-destination error. Add regression tests for cross-realm audience/context and public/private shape mismatches. P0 —
|
Adds
buzz-ifc, a zero-I/O Rust library that implements the audience-, context-, agent-, and epoch-scoped policy from the secure agent information-flow design.This intentionally does not integrate with ACP, the relay, Desktop, or a broker executable. The trusted broker can consume the library while retaining responsibility for verifying events and membership and for durable declassification expiry/replay enforcement.
Checked with
just ci, targetedcargo test -p buzz-ifc, Clippy with warnings denied, and rustdoc with warnings denied.